<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
 <%@page import ="java.util.*" %>
 <%@page import ="java.text.DecimalFormat"%>
 <%@page import="java.sql.*" %>
 <jsp:useBean id="db" class="ctm.javacode.dbBean"/>
<%@ page
	import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,org.w3c.dom.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>飲食紀錄</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>

<script language="Javascript" type="text/javascript" src="./JQuery/Calculation.js"></script>
<script language="Javascript" type="text/javascript" src="./JQuery/history.js"></script>
<script language="Javascript" type="text/javascript" src="./JQuery/checkID.js"></script>
<script type="text/javascript">
	google.load("visualization", "1", {packages:["corechart"]});
    google.setOnLoadCallback(drawChart);
</script>
 
<style type="text/css">
<!--
body {
	background-image: url(img/grass.jpg);
	background-position: center top;
	background-color: #FFFFFF;
	background-repeat: repeat;
}

body,td,th {
	color: #000000;
	font-size: 24px;
	font-family: Arial;
}

a:link {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #FFFFFF;
}

a:visited {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #FFFFFF;
}

a:hover {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #000000;
}

.class2 a:link {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #000000;
}

.class2 a:visited {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #000000;
}

.class2 a:active {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #0000FF;
}

.class2 a:hover {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #0000FF;
}

.class3 a:link {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 30px;
	color: #437A27;
}

.class3 a:visited {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 30px;
	color: #437A27;
}

.class3 a:active {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 30px;
	color: #437A27;
}

.class3 a:hover {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 30px;
	color: #437A27;
}

.ind:link {
	color: #535353;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.ind:visited {
	color: #535353;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.ind:hover {
	color: #BB280F;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.off {
	display: none;
}

.on {
	display: block;
}

.HEAD_STYLE {
	font-weight: bold;
	color: #437A27;
	font-family: "標楷體";
	font-size: 30px;
}

.TEXT_STYLE {
	font-family: "標楷體";
	color: #000000;
	font-size: 24px;
}

.BOTTOM_STYLE {
	color: #FFFFFF;
	font-family: Arial;
	font-size: 20px;
}

.LEFT_BUTTON {
	font-family: "標楷體";
	font-size: 30px;
}

.button {
	border: 1px;
	padding-top: 4px;
	padding-right: 7px;
	padding-bottom: 4px;
	padding-left: 7px;
	background-color: #468129;
	color: #FFFFFF;
	font-size: 16px;
	border-color: #3C7023;
}

.food {
	background-image: url(img/food.jpg);
	background-color: #FFFFFF;
	background-repeat: no-repeat; 
}

.style {	
	font-weight: bold; 
	font-size: 23px; 
	color: #000000;
	font-family:"標楷體"
}
.style6_2 {
	font-size: 20px
	font-weight: bold; 
	font-family:"標楷體"
}

@media print{
    #non-printable { display: none; }
    #printable { display: block; }   
}

.PageNext {
	page-break-after: always;
}
-->
</style>

</head>
<body  alink="#FF0000" vlink="#FF0000" >
<% 
DecimalFormat df = new DecimalFormat("0"); 
DecimalFormat df2 = new DecimalFormat("#.#");

/******設定******/
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
db.setDataSource("jdbc/ctmpllab");
db.Connected();

String sqlQuery = "select distinct company from `nourishment`";
ResultSet rs;
rs = db.ExcuteQuery(sqlQuery);

String time = new String(request.getParameter("time").getBytes("ISO-8859-1"),"UTF-8");
String personId = request.getParameter("name");
%>
<input type="hidden" name="time" id="time" value="<%out.print(time); %>"/>
<input type="hidden" name="personId"  id="personId" value="<%out.print(personId); %>"/>
	
	<table width="100%" border="0">
		<tr id="non-printable">
			<td><p>&nbsp;</p></td>
		</tr>
		<tr>
			<td width="5%">&nbsp;</td>
			<td bgcolor="#FFFFFF">
				
				<table width="100%" border="0">
					<tr id="non-printable">
						<td  background="img/herbal.jpg">
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
						</td>
					</tr>
					<tr>
        				<td>	
							<table bgcolor="#437A27" width="100%" border="0">
         					 	<tr> <td>&nbsp;</td> </tr>
        					</table>
						</td>
     			  	</tr>
					<tr>
						<td>
							<form  name="menuform" method="post" target="iframe" action="fooddemo.do">
							<table width="100%">
								<tr id="non-printable">
									<td class="HEAD_STYLE" align="center">
										<span class="class3"><a href="javascript:showtabel('table1')">基本資料</a></span>
									</td>
								</tr>
							    <tr id="non-printable">
									<td class="TEXT_STYLE">
										<table width="90%" align="center" id="table1" class="on">
										<tr>
											<td class="TEXT_STYLE" colspan="3">身分證字號:
                  								<input type="text" name="id" id="id" class="TEXT_STYLE" size="10" style="text-align:right" readonly="readonly" value="<%out.print(personId); %>">
                  								<span id="checkdata"></span>
											</td>
										</tr>
										<tr>
											<td width="37%" class="TEXT_STYLE">性別：
											    <input type="radio" name="sex" value="male" onClick="radio_click('sex')" checked="checked">男性
                  								<input type="radio" name="sex" value="female" onClick="radio_click('sex')">女性
										    </td>
                							<td width="22%" class="TEXT_STYLE">年齡:
                  								<input type="text" id="age" name="age" class="TEXT_STYLE" 
                  									   onChange="GetAge()" style="width:50px;text-align:right">歲 
										    </td>
											<td></td>
										</tr>
										<tr>
											<td class="TEXT_STYLE" colspan="3">身高:
                  								<input type="text" id="height" name="height" class="TEXT_STYLE" 
                  									onChange="GetHeight()" style="width:50px;text-align:right">cm 
										  </td>
										</tr>
										<tr>
                							<td class="TEXT_STYLE" colspan="2">體重：
                  								<input type="radio" name="weightType" value="old" onClick="radio_click('weightType')" checked="checked">
                          						<input type="text" id="weight" name="weight" class="TEXT_STYLE" 
                          							onChange="GetWeight()" style="width:50px;text-align:right">kg&nbsp;
                	  							<input type="radio" name="weightType" value="new" onClick="radio_click('weightType')">
            	    							調整體重&nbsp;<span id="weight3"></span>
											</td>
										</tr>
										<tr>
											<td class="TEXT_STYLE" colspan="2">
												<span id="bmi"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="weight2"></span>
											</td>
										</tr>
										</table>
										<br>
									</td>
								</tr>
								<tr id="non-printable">
									<td class="HEAD_STYLE" align="center">
										<span class="class3"><a href="javascript:showtabel('table2')">飲食型態</a></span>
									</td> 
								</tr>
								<tr id="non-printable">
									<td>
										<table width="90%" align="center" id="table2" class="on">
											<tr>
												<td width="25%" name="text" align="center" class="TEXT_STYLE">職業:</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type1" class="TEXT_STYLE" size="50"></td>							
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">主要照顧者：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type2" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">飲食型態：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type3" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">活動狀態：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type4" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">攝食型態：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type5" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">飲食習慣：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type6" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">早餐：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type7" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">午餐：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type8" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">晚餐：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type9" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">水果：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type10" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">點心：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type11" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">營養補充品：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type12" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">嗜好食物：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type13" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">菸、酒、檳榔：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type14" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">消化狀態：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type15" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">主訴飲食問題：</td>
												<td class="TEXT_STYLE">
													<input type="text" id="type16" class="TEXT_STYLE" size="50"></td>	
											</tr>
											<tr>
												<td name="text" align="center" class="TEXT_STYLE">注意事項：</td>
												<td class="TEXT_STYLE">
													<textarea cols="50" rows="5" class="TEXT_STYLE" id="type17"></textarea></td>	
											</tr>
										</table>
										<br>
									</td>
								</tr>	
								<tr id="non-printable">
									<td class="HEAD_STYLE" align="center">
										<span class="class3"><a href="javascript:showtabel('table3')">飲食攝取份量</a></span>
									</td> 
								</tr>
								<tr id="non-printable">
									<td>
								  		<div align="right">
											<span class="TEXT_STYLE">單位:份</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
										<table width="90%" align="center" border="1" id="table3" >
											<tr>
												<td name="text" align="center" class="TEXT_STYLE" colspan="2"><span>六大類食物</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" name="text"><span>早餐</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" name="text"><span>早點</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" name="text"><span>午餐</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" nam ="text"><span>午點</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" name="text"><span>晚餐</span></td>
												<td width="12%" align="center" class="TEXT_STYLE" name="text"><span>晚點</span></td>
											</tr>
											<tr>
												<td width="20%" rowspan="3" align="center" class="TEXT_STYLE"><span>奶類</span></td>
												<td width="8%" align="center" class="TEXT_STYLE"><span>脫脂</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk1" type="text" size="3" class="TEXT_STYLE" 
													       onChange="Change_Milk()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk2" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_Milk()" style="text-align:center" >												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk3" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_Milk()" style="text-align:center" >												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk4" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_Milk()" style="text-align:center" >												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk5" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_Milk()" style="text-align:center" >												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="milk6" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_Milk()" style="text-align:center" >												
												</td>
											</tr>
											<tr>
												<td width="8%" align="center" class="TEXT_STYLE"><span>低脂</span></td>
												<td align="center">
													<input id="low_milk1" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">												
												</td>
												<td align="center">
													<input id="low_milk2" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">		
												</td>
												<td align="center">
													<input id="low_milk3" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">		
												</td>
												<td align="center">
													<input id="low_milk4" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_milk5" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_milk6" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_LowMilk()" style="text-align:center">
												</td>
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>全脂</span></td>
												<td align="center">
													<input id="high_milk1" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
												<td align="center">
													<input id="high_milk2" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
												<td align="center">
													<input id="high_milk3" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
												<td align="center">
													<input id="high_milk4" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
												<td align="center">
													<input id="high_milk5" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
												<td align="center">
													<input id="high_milk6" type="text" size="3" class="TEXT_STYLE" 
													       onchange="Change_HighMilk()" style="text-align:center">
												</td>
											</tr>										
											<tr>
												<td align="center" class="TEXT_STYLE" colspan="2"><span>蔬菜類</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="veg6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Veg()" style="text-align:center">											
												</td>
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE" colspan="2"><span>水果類</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fruit6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fruit()" style="text-align:center">												
												</td>
											</tr>				
											<tr>
											
												<td align="center" class="TEXT_STYLE" colspan="2"><span>全穀根莖類</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="grain6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Grain()" style="text-align:center">		
												</td>
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE" rowspan="3"><span>豆魚肉蛋類</span></td>
												<td align="center" class="TEXT_STYLE"><span>低脂</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="low_meat6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_LowMeat()" style="text-align: center">	
												</td>
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>中脂</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="meat6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Meat()" style="text-align:center">	
												</td>
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>高脂</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="high_meat6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_HighMeat()" style="text-align:center">	
												</td>
											</tr>									
											<tr>
												<td align="center" class="TEXT_STYLE" colspan="2"><span>油脂及堅果種子類</span></td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat1" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat2" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat3" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat4" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat5" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
												<td align="center" class="TEXT_STYLE">
													<input id="fat6" type="text" size="3" class="TEXT_STYLE" 
														   onchange="Change_Fat()" style="text-align:center">												
												</td>
											</tr>								
										</table>
								  </td> 
								</tr>
								<tr id="non-printable"><td><br></td></tr>
								<tr id="non-printable">
									<td class="HEAD_STYLE" align="center">
										<span class="class3"><a href="javascript:showtabel('table4')">營養品攝取份量</a></span>
									</td> 
								</tr>	
													
								<tr id="non-printable">								
									<td>
									<table width="90%" align="center" id="table4" class="on">	
									<tr>
										<td align="left" class="TEXT_STYLE">
											<span>公司 :</span> 
											<select id="SymptomsClass" style="font-size: 18px">
												<option>請選擇</option> 
												<%
													while (rs.next()) {
														try {
															out.print("<option value='" + rs.getString("company")
																+ "'>");
															out.print(rs.getString("company"));
															out.print("</option>");

														} catch (SQLException e) {
															throw new SQLException(e);
														} // end try-catch
													}
													db.CloseConn();
												%>
											</select>
											<span> 產品:</span> 
											<select id="SymptomsClasstest" style="font-size: 18px"> </select>&nbsp; 
										</td>
									</tr>
									<tr>
										<td align="left" class="TEXT_STYLE">
											<span> 一餐</span>
											<input type="text" id="nourish_quantity" style="text-align:right" size="3" class="TEXT_STYLE">
											<span>份/匙</span>&nbsp;&nbsp;
											<span>共</span>
											<input type="text" id="nourish_meal" style="text-align:right" size="3" class="TEXT_STYLE">
											<span>餐</span>
											<input align="left" type="button" value="加入" id="add_list" class="button"/>
											<input align="left" type="button" value="刪除" id="del_list" class="button"/>
											
										</td>
									</tr>
									<tr>
										<td align="left" class="TEXT_STYLE">
											<div>
												<select id="nourish_list" size="5" style="font-size: 18px; overflow: auto; width: 800px; height: 134px">													
												</select>
											</div>
										</td>
									</tr>
									</table>
									</td>	
								</tr>
								
								<tr id="non-printable"><td><br></td></tr>
								<tr id="non-printable">
									<td class="HEAD_STYLE" align="center">
										<span class="class3"><a href="javascript:showtabel('table5')">飲食攝取熱量</a></span>
									</td> 
								</tr>
								<tr id="non-printable">
									<td>
										<table width="90%" align="center" border="1" id="table5" class="on">
										<tr>
											<td width="20%" align="center" class="TEXT_STYLE"><span>三大營養素</span></td>
											<td width="30%" align="center" class="TEXT_STYLE"><span>攝取熱量</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>蛋白質</span></td>
											<td align="center" class="TEXT_STYLE">
												<span id="prot_">0</span>大卡(
												<span id="prot_intake">0</span>克；<span id="prot_rate">0</span>%)											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>脂肪</span></td>
											<td align="center" class="TEXT_STYLE">
												<span id="fat_">0</span><span>大卡(</span>
												<span id="fat_intake">0</span>克；<span id="fat_rate">0</span>%)											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>醣類</span></td>
											<td align="center" class="TEXT_STYLE">
												<span id="cho_">0</span><span>大卡(</span>
												<span id="cho_intake">0</span>克；<span id="cho_rate">0</span>%)											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE">合計</td>
											<td align="center" class="TEXT_STYLE">
												<span id="calofday_intake">0</span><span>大卡</span><span id="average1"></span>
											</td>
										</tr>
										<tr>
											<td class="TEXT_STYLE" colspan="2"><div id="chart1" align="center"></div></td>
										</tr>
										</table>
									</td>
								</tr>
								<tr id="non-printable"><td><br></td></tr>
								<tr id="non-printable">
									<td>
										<table width="90%" align="center">
											<tr>
												<td class="TEXT_STYLE">
													<span style="font-weight:bold">一般使用者</span><br>
													<input type="radio" name="work" value="little" onClick="radio_click('work')">輕度工作
													<span style="color:#0000FF" id="work1"></span><br>&nbsp;																	
													大部分從事靜態或坐著的工作。例如：家庭主婦、坐辦公室的上班族、售貨員<br>
													<input type="radio" name="work" value="middle" onClick="radio_click('work')">中度工作
													<span style="color:#0000FF" id="work2"></span><br>&nbsp;	
													從事機械操作、接待或家事等站立活動較多的工作。例如：褓母、護士、服務生<br>
													<input type="radio" name="work" value="large" onClick="radio_click('work')">重度工作
													<span style="color:#0000FF" id="work3"></span><br>&nbsp;
													從事農耕、漁業、建築等的重度使用體力之工作。例如：運動員、搬家工<br>			
												</td>
											</tr>
											<tr>
												<td class="TEXT_STYLE">
													<span style="font-weight:bold">專業使用者</span><br>
													<span>活動因子：</span>
													<input type="radio" name="activity" value="little" onClick="radio_click('activity')">臥床
													<input type="radio" name="activity" value="middle" onClick="radio_click('activity')">輕度活動
													<input type="radio" name="activity" value="large" onClick="radio_click('activity')">中度活動
													<br><span>壓力因子：</span> 
													<input type="text" id="pressure" size="4" class="TEXT_STYLE" style="text-align:right" value="1" onChange="cal_calofday()"> 
													(<span class="class2"><a href="javascript:showtabel('table')">參考</a></span>)	
												</td>
											</tr>
										</table>																												
									</td>
								</tr>
								<tr id="non-printable">
									<table align="center" rules="all" id="table" class="off" border=1>
										<col style="width:10%">
										<col style="width:10%">
										<p align="center">
										<tr>
											<td align="center" class="TEXT_STYLE"><span>壓力</span></td>
											<td align="center" class="TEXT_STYLE"><span>因子</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>輕度飢餓</span></td>
											<td align="center" class="TEXT_STYLE"><span>0.85~1.0</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>小手術或癌症</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.2</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>腹膜炎</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.05~1.25</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>骨折、骨骼創傷</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.3</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>發燒1°C</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.13</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>生長</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.4</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>懷孕</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.1</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>哺乳</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.4</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>敗血</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.4~1.8</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>燒傷30%</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.7</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>燒傷50%</span></td>
											<td align="center" class="TEXT_STYLE"><span>2.0</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>燒傷70%</span></td>
											<td align="center" class="TEXT_STYLE"><span>2.2</span></td>
										</tr>
										<tr>
										    <td align="center" class="TEXT_STYLE"><span>癌症惡病質</span></td>
											<td align="center" class="TEXT_STYLE"><span>1.2~1.4</span></td>
										</tr>
										</p>
									</table>
								</tr>
								<tr id="non-printable"><td><br></td></tr>
							
								<tr>	
								    <td>
										<div id="non-printable" class="HEAD_STYLE" align="center">每日飲食建議量</div>
										<table id="non-printable" width="90%" align="center" border="1">
										<tr>
											<td width="18%" align="center" class="TEXT_STYLE"><span>三大營養素</span></td>
											<td width="40%" align="center" class="TEXT_STYLE"><span>建議熱量</span></td>	
										</tr>
										<tr>
											<tr>
											<td align="center" class="TEXT_STYLE"><span>蛋白質</span></td>
										  	<td align="center" class="TEXT_STYLE">
												<span id="prot__">NaN</span><span>大卡(</span>
												<span id="prot">NaN</span>克；
												<input type="text" id="g_kgBW" size="2" class="TEXT_STYLE"
														style="text-align:center" onChange="ThreeNutrients()" value="1">												g/kgBW；<span id="proportion_prot">NaN</span>%)											
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>脂肪</span></td>
											<td align="center" class="TEXT_STYLE">
												<span id="fat__">NaN</span><span>大卡(</span>
												<span id="fat">NaN</span>克；
												<input type="text" id="proportion_fat" size="3" class="TEXT_STYLE" 
														onChange="ThreeNutrients()" style="text-align: center" value=30> 
												<span>%)</span> 	
										  </td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>醣類</span></td>
											<td align="center" class="TEXT_STYLE">
												<span id="cho__">NaN</span><span>大卡(</span>
												<span id="cho">NaN</span>克；<span id="proportion_cho">NaN</span>%)											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE">合計</td>
											<td align="center" class="TEXT_STYLE">
												<span id="calofday">NaN</span><span>大卡</span><span id="average2"></span>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center" class="TEXT_STYLE"><div id="chart2"></div></td>
										</tr>										
									</table>
									<div id="non-printable"> <br><br> </div>
									<div id="non-printable" align="right">
										<span class="TEXT_STYLE">單位:份</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>							   
								    <table id="non-printable" width="90%" align="center" border="1">
										<tr>
											<td align="center" class="TEXT_STYLE"><span>六大類食物</span></td>
											<td align="center" class="TEXT_STYLE"><span>建議份量(±0.5份)</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>低脂奶類</span></td>
											<td align="center" >
												<input type="text" id="quantity_Milk" size="3" class="TEXT_STYLE" 
														onChange="SixType()" style="text-align:center" value="NaN"> 
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>蔬菜類</span></td>
											<td align="center" >
												<input type="text" id="quantity_Veg" size="3" class="TEXT_STYLE" 
													   onChange="SixType()" style="text-align:center" value="NaN">
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>水果類</span></td>
											<td align="center">
												<input type="text" id="quantity_Fruit" size="3" class="TEXT_STYLE" 
													   onChange="SixType()" style="text-align:center" value="NaN"> 
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>全穀根莖類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="quantity_Grain">NaN</span></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>豆魚肉蛋類</span></td>
											<td align="center" class="TEXT_STYLE"><span name="test" id="quantity_Meat">NaN</span>
											</td>
										</tr>
									    <tr>
											<td align="center" class="TEXT_STYLE"><span>油脂及堅果種子類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="quantity_Fat">NaN</span></td>
										</tr>
									</table>
									<div id="non-printable"> <br><br> </div>							
									<!--  <form  name="menuform" method="post" target="iframe" > -->									
									<table height="400" width="918" align="center" class="food" rules="none" cellpadding="0">
										<tr>
											<td height="147" width="161"></td>
											<td width="156"></td>
											<td width="244"></td>
											<td width="345"></td>
										</tr>
										<tr>			
											<td height="20"></td>
											<td></td>
											<td class="style">
												<div class="class2" >
													<a href="javascript:check('rad1')">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
														<span >全榖根莖類</span></a>
												</div>
												<input type="radio" name="foodwork" value="1" class="off" id="rad1">														
											</td>
											<td></td>					
										</tr>
										<tr>
											<td height="20"></td>
											<td></td>
											<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
												<span class="style" id="img_Grain">NaN碗</span><br></td>
											<td>&nbsp;&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td height="20"></td>
											<td class="style">
												<div class="class2">
													<a href="javascript:check('rad2')" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
														蔬菜類</a>
												</div>
												<input type="radio" name="foodwork" value="2" class="off" id="rad2">
											</td>
											<td></td>
											<td class="style">
												<div class="class2">
													<a href="javascript:check('rad3')">豆魚肉蛋類</a></div>
													<input type="radio" name="foodwork" value="3" class="off" id="rad3">											
											</td>
									  </tr>
											<tr>
												<td height="20"></td>
												<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
													<span class="style" id="img_Veg">NaN份</span>
												</td>
												<td></td>
												<td class="style">
													<span class="style" id="img_Meat">NaN份</span>&nbsp;	
													<input type="radio" name="foodwork" value="4" class="off" id="rad4">				
													<div class="class2"><a href="javascript:check('rad4')">
													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;低脂奶類
													</a></div>
												</td>
											</tr>
											<tr>
												<td height="20"></td>
												<td>&nbsp;</td>
												<td></td>
												<td>						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
													<span class="style" id="img_Milk_mm">NaN毫升</span>
												</td>
									  </tr>
																	<tr>
																		<td height="20"></td>
																		<td class="style"><div class="class2" >
																		<a href="javascript:check('rad5')" >
																		&nbsp;&nbsp;&nbsp;&nbsp;水果類
																		</a></div>
																		<input type="radio" name="foodwork" value="5" class="off" id="rad5">
																		</td>
																		<td></td>
																		<td>
																		</td>
																	</tr>
																	<tr>
																		<td height="20"></td>
																		<td>&nbsp;&nbsp;&nbsp;&nbsp; <span class="style" id="img_Fruit">NaN份</span>
																		</td>
																		<td></td>
																		<td class="style"><div class="class2" >
																		<a href="javascript:check('rad6')" >&nbsp;<span
																			id="img_Fat">油脂NaN湯匙及堅果種子類1份</span>
																		</a></div>
																		<input type="radio" name="foodwork" value="6" class="off" id="rad6">	
																		</td>
																	</tr>
																	
									</table> 
									<div class="PageNext">
									<div id="non-printable"><br><br></div>												
									<div class="HEAD_STYLE" align="center">每餐攝取份量</div>
									<div align="right">
										<span class="TEXT_STYLE">單位:份</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</div>																				
									<table id="printable"  width="90%" align="center" border="1">
										<tr>
											<td align="center" class="TEXT_STYLE"><span>六大類食物</span></td>
											<td align="center" class="TEXT_STYLE">
												<span>早餐</span>
												<input type="text" id="proportion_breakfast" style="text-align:center" value="30"
													   class="TEXT_STYLE" onChange="meal_proportion('breakfast', '0')" size="3">%
											</td>
											<td align="center" class="TEXT_STYLE"><span>早點</span></td>
										    <td align="center" class="TEXT_STYLE">
												<span>午餐</span>
												<input type="text" id="proportion_lunch" size="3" style="text-align:center" 
		                                               class="TEXT_STYLE" onChange="meal_proportion('lunch', 'dinner')"	value="35">%
											</td>
											<td align="center" class="TEXT_STYLE"><span>午點</span></td>
											<td align="center" class="TEXT_STYLE">
												<span>晚餐</span>
												<input type="text" id="proportion_dinner" size="3" class="TEXT_STYLE" value="35"
														onChange="meal_proportion('dinner', 'lunch')"  style="text-align:center">%
											</td>
											<td align="center" class="TEXT_STYLE"><span>晚點</span></td>
										</tr>										
										<tr>
											<td align="center" class="TEXT_STYLE"><span>低脂奶類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Milk">NaN</span> </td>
											<td align="center" class="TEXT_STYLE"> 
												<input id="breakfast_dessert_Milk" type="text" name="dessert" size="2" class="TEXT_STYLE"
														onchange="Dessert_quantity('quantity_Milk', 'Milk')" style="text-align:center">
											</td>
											<td align="center" class="TEXT_STYLE"><span id="lunch_Milk">NaN</span> </td>
											<td align="center">
												<input id="lunch_dessert_Milk" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Milk', 'Milk')" style="text-align:center">
											</td>
											<td align="center" class="TEXT_STYLE"><span id="dinner_Milk">NaN</span> </td>
											<td align="center">
												<input id="dinner_dessert_Milk" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Milk', 'Milk')" style="text-align:center">
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>蔬菜類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Veg">NaN</span></td>
											<td align="center">
												<input id="breakfast_dessert_Veg" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Veg', 'Veg')" style="text-align:center" >
											</td>
											<td align="center" class="TEXT_STYLE"><span id="lunch_Veg">NaN</span></td>
											<td align="center">
												<input id="lunch_dessert_Veg" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Veg', 'Veg')" style="text-align:center">
											</td>
											<td align="center" class="TEXT_STYLE"><span id="dinner_Veg">NaN</span> </td>
											<td align="center">
												<input id="dinner_dessert_Veg" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Veg', 'Veg')" style="text-align:center">
											</td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>水果類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Fruit">NaN</span> </td>
											<td align="center"><input id="breakfast_dessert_Fruit" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Fruit', 'Fruit')"
																			style="text-align: center"></td>
											<td align="center" class="TEXT_STYLE"><span id="lunch_Fruit">NaN</span> </td>
											<td align="center"><input id="lunch_dessert_Fruit" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Fruit', 'Fruit')"
																			style="text-align: center"></td>
											<td align="center" class="TEXT_STYLE"><span id="dinner_Fruit">NaN</span> </td>
											<td align="center"><input id="dinner_dessert_Fruit" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Fruit', 'Fruit')"
																			style="text-align: center"></td>
										</tr>						
										<tr>
											<td align="center" class="TEXT_STYLE"><span>全穀根莖類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Grain">NaN</span> </td>
											<td align="center"><input id="breakfast_dessert_Grain" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Grain', 'Grain')"
																			style="text-align: center" ></td>
											<td align="center" class="TEXT_STYLE"><span id="lunch_Grain">NaN</span> </td>
											<td align="center"><input id="lunch_dessert_Grain" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Grain', 'Grain')"
																			style="text-align: center"></td>
											<td align="center" class="TEXT_STYLE"><span id="dinner_Grain">NaN</span> </td>
											<td align="center"><input id="dinner_dessert_Grain" type="text"
																			name="dessert" size="2" class="TEXT_STYLE"
																			onchange="Dessert_quantity('quantity_Grain', 'Grain')"
																			style="text-align: center" ></td>
										</tr>
										<tr>
											<td align="center" class="TEXT_STYLE"><span>豆魚肉蛋類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Meat">NaN</span></td>
											<td align="center">
												<input id="breakfast_dessert_Meat" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Meat', 'Meat')" style="text-align:center">
											</td>
												<td align="center" class="TEXT_STYLE"><span id="lunch_Meat">NaN</span></td>
												<td align="center">
													<input id="lunch_dessert_Meat" type="text" name="dessert" size="2" class="TEXT_STYLE"
													       onchange="Dessert_quantity('quantity_Meat', 'Meat')" style="text-align: center">
												</td>
												<td align="center" class="TEXT_STYLE"><span id="dinner_Meat">NaN</span> </td>
											    <td align="center">
													<input id="dinner_dessert_Meat" type="text" name="dessert" size="2" class="TEXT_STYLE"
												           onchange="Dessert_quantity('quantity_Meat', 'Meat')" style="text-align:center" >
											</td>
							            </tr>							            
										<tr>
											<td align="center" class="TEXT_STYLE"><span>油脂及堅果種子類</span></td>
											<td align="center" class="TEXT_STYLE"><span id="breakfast_Fat">NaN</span> </td>
											<td align="center">
											    <input id="breakfast_dessert_Fat" type="text" name="dessert" size="2" class="TEXT_STYLE"
                                                       onchange="Dessert_quantity('quantity_Fat', 'Fat')" style="text-align:center">
											</td>
											<td align="center" class="TEXT_STYLE"><span id="lunch_Fat">NaN</span></td>
											<td align="center">
												<input id="lunch_dessert_Fat" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Fat', 'Fat')" style="text-align:center">
											</td>
											<td align="center" class="TEXT_STYLE"><span id="dinner_Fat">NaN</span></td>
											<td align="center">
												<input id="dinner_dessert_Fat" type="text" name="dessert" size="2" class="TEXT_STYLE"
													   onchange="Dessert_quantity('quantity_Fat', 'Fat')" style="text-align:center">
											</td>
										</tr>
									</table>
									</div>	
									<br>				
								</td>	
							</tr>
							
							<tr>
								<td class="HEAD_STYLE" align="center">飲食評量結果</td> 
							</tr> 
								<tr>
									<td>
										<table width="90%" align="center" border="1">
											<tr>
												<td width="30%" align="center" class="TEXT_STYLE"><span>六大類食物</span></td>
												<td width="20%" align="center" class="TEXT_STYLE"><span>評量結果</span></td>							
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>奶類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="milk_compare">NaN</span></td>			
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>蔬菜類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="veg_compare">NaN</span></td>			
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>水果類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="fruit_compare">NaN</span></td>			
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>全穀根莖類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="grain_compare">NaN</span> </td>			
											</tr>									
											<tr>
												<td align="center" class="TEXT_STYLE"><span>豆魚肉蛋類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="meat_compare">NaN</span> </td>			
											</tr>
											<tr>
												<td align="center" class="TEXT_STYLE"><span>油脂及堅果種子類</span></td>
												<td align="center" class="TEXT_STYLE"><span id="fat_compare">NaN</span> </td>			
											</tr>
											<tr>
												<td class="TEXT_STYLE" colspan="2">備註:
													<span style="color:#009900">綠色</span><span>代表不足，</span>
													<span style="color:#FF0000">紅色</span><span>代表超過</span>
													<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="warning1"></span>
													<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="warning2"></span>
												</td>		
											</tr>
											<tr>
												<td colspan="2" align="center" class="TEXT_STYLE"><div id="chart3"></div></td>
											</tr>				
										</table>
										<div id="non-printable">
										<br> </div>
									</td>					
								</tr>
								
								<tr id="non-printable">
									<td align="center">
										<div class="class2"><a href="javascript:printout()">列印本頁</a></div>
										<input type="button" value="儲存" id="Save" class="button"/>&nbsp;
										<input type="button" value="暫存" id="TempSave" class="button"/>&nbsp;
										<div id="save" style="display:none"></div>
										<!--<div id="time" style="display:none"></div>-->
										<div id="non-printable">
										<br> </div>
									</td>
								</tr>						
								<tr id="non-printable">
									<td bgcolor="#437A27">
										<div align="center" class="BOTTOM_STYLE">Copyright@ITRI and CCU_PLlab</div>
									</td>
								</tr>
							</table>
						</form>			
						</td>
					</tr>
				</table>
				
			</td>
			<td id="non-printable" width="5%">&nbsp;</td>
		</tr>
	</table>
	<script language="Javascript" type="text/javascript" src="./JQuery/suggestHistory.js"></script> 
	<p id="non-printable">&nbsp;</p>
</body>
</html>
